import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import Home from '@/components/tabbar/HomeContainer.vue'
import Member from '@/components/tabbar/MemberContainer.vue'
import Car from  '@/components/tabbar/ShopcarContainer.vue'
import search from '@/components/tabbar/SearchContainer.vue'
import newsList from '@/components/news/newsList.vue'
export default new Router({
  //设置被激活路由自动添加的类名  ,默认类名叫router-link-active
  linkActiveClass: 'mui-active',
  // linkExactActiveClass  切换多类名
  routes: [
    {path:'/',redirect:'/home'},
    {
    path:'/home',
    component: Home
  },
  {
    path:'/member',
    component: Member
  },
  {
    path:'/shoppingCar',
    component: Car
  },
  {
    path:'/search',
    component: search
  }, {
    path:'/newList',
    component: newsList,
  }
  ]
})
